package com.example.springbootdemo2023.bus.account.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.springbootdemo2023.bus.account.dto.Account;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springbootdemo2023.bus.menu.dto.Menu;
import com.example.springbootdemo2023.bus.role.dto.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author GaoJingBo
 * @since 2023-03-17
 */
@Mapper
public interface AccountMapper extends BaseMapper<Account> {

    IPage<Account> myPage(Page<Object> of, @Param("account") Account account);

    Role getRoleData(@Param("userID") String userID);

    List<Menu> getRoleMenuData(@Param("userID")String userID);

    List<Account> getNotGranteStaffAccountList(@Param("dto")Account dto);
}
